----- Original Message -----
From: "Andrew Kohlsmith" <akohlsmith-asterisk@benshaw.com>
To: <asterisk-users@lists.digium.com>
Sent: Tuesday, December 09, 2003 12:58 PM
Subject: [Asterisk-Users] dialling peer problems
> I'm trying to use Jeremy's suggestion of dialling using just the
peer name
> instead of user:pass@peer but I'm running into some really funky
issues.
>
> It does the same thing with both VoicePulse and another * server I have.
>
> [voicepulse]
> type=peer
> host=gw5.voicepulse.com
> trunk=yes
> user=USERNAME
> pass=PASSWORD
>
> and in my dialplan:
> Dial(IAX2/voicepulse/${EXTEN:2}@VPWS,90,r)
>
> The log shows this:
> -- Executing Dial("Zap/2-1",
"IAX2/voicepulse/14121234567@VPWS|90|r")
in> new stack
> -- Called voicepulse/14121234567@VPWS
> WARNING[81926]: File chan_iax2.c, Line 4528 (socket_read): I don't know
how> to authenticate wSS36eLJ68 to 66.234.228.132
> -- Hungup 'IAX2[voicepulse]/16384'
>
> wSS36eLJ68 is *not* my voicepulse username.
>
> Same thing when I try to call my other * server:
>
> [benshaw]
> type=peer
> host=my.other.*.server
> user=USERNAME
> pass=PASSWORD
>
> and the log shows
> -- Executing Dial("Zap/2-1",
"IAX2/benshaw/1234567") in new stack
> -- Called benshaw/1234567
> WARNING[81926]: File chan_iax2.c, Line 4528 (socket_read): I don't know
how> to authenticate iaxtel to my.other.*.server
> -- Hungup 'IAX2[benshaw]/3'
>
> Now the text 'iaxtel' is nowhere in any of my configuration files!
Grepping> for the text in /etc/asterisk shows no matches.
>
> In both cases if I go back to using Dial(IAX2/user:pass@peer.ip.here/
> ${EXTEN}) it works just fine.
You should be dialing as:
Dial(IAX2/username@peername/BYEXTENSION@VPWS|90|r)
I used BYEXTENSION because that's what came to mind first. If you're
passing
an ARG or something else there use it instead.
-----
Andrew Thompson http://aktzero.com/
Your eyes are weary from staring at the CRT. You feel sleepy. Notice how res
tful it is to watch the cursor blink. Close your eyes. The opinions stated
above are yours. You cannot imagine why you ever felt otherwise.