[Asterisk-Users] Problem with IAX2 dialin with portunity
Joshua Colp
jcolp at digium.com
Mon May 29 16:03:50 MST 2006
On 5/29/06 7:56 PM, "Matthias Fechner" <idefix at fechner.net> wrote:
> Hi,
>
> I'm using http://www.portunity.net/
>
> I configured now asterisk with the following setup:
> iax.conf:
> register => XXXXXXX:YYYYYYY at iax.iaxport.de
>
> [portunity-out]
> type=friend
> host=iax.iaxport.de
> username=XXXXXXX
> secret=YYYYYY
> context=incoming-portunity
> notransfer=yes
>
> [guest]
> type=user
> context=default
> ;callerid="Guest IAX User"
>
> And in extensions.conf:
> [default]
> ;exten => s,1,DIAL(IAX2/idefix)
> exten => s,1,NoOp(--- ${CALLERID} calling on portunity over IAX2
> (${EXTEN}) ---)
> exten => s,2,Set(LANGUAGE()=de)
> exten => s,3,Ringing
> exten => s,4,Wait,4
> exten => s,5,Answer
> exten => s,6,Playback(invalid)
> exten => s,7,Hangup
>
> [incoming-portunity]
> ;exten => s,1,DIAL(IAX2/idefix)
> exten => s,1,NoOp(--- ${CALLERID} calling on portunity over IAX2
> (${EXTEN}) ---)
> exten => s,2,Set(LANGUAGE()=de)
> exten => s,3,Ringing
> exten => s,4,Wait,4
> exten => s,5,Answer
> exten => s,6,Playback(invalid)
> exten => s,7,Hangup
>
> But if I get a call it is always matched with the section [guest] and
> calls the context default. But if a call is incoming from portunity
> should not the section [portunity-out] with context incoming-portunity
> be called?
>
> iax2 show registry says:
> Host Username Perceived Refresh State
> 82.139.223.1:4569 XXXXXXXX XX.XX.12.XX:4569 60 Registered
>
> Thx a lot for help!
>
> Best regards,
> Matthias
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
Only if the username is specified as portunity-out when the other side dials
you. Otherwise your Asterisk has no idea what to authenticate them as so it
takes a guess and in the end settles on guest.
--
Joshua Colp
Software Developer
Digium
P - 256-428-6066
C - 506-878-0147
jcolp at digium.com
More information about the asterisk-users
mailing list