Matthias Fechner
2006-May-29 15:56 UTC
[Asterisk-Users] Problem with IAX2 dialin with portunity
Hi, I'm using http://www.portunity.net/ I configured now asterisk with the following setup: iax.conf: register => XXXXXXX:YYYYYYY@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
Joshua Colp
2006-May-29 16:03 UTC
[Asterisk-Users] Problem with IAX2 dialin with portunity
On 5/29/06 7:56 PM, "Matthias Fechner" <idefix@fechner.net> wrote:> Hi, > > I'm using http://www.portunity.net/ > > I configured now asterisk with the following setup: > iax.conf: > register => XXXXXXX:YYYYYYY@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-usersOnly 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@digium.com
Matthias Fechner
2006-May-30 03:01 UTC
[Asterisk-Users] Problem with IAX2 dialin with portunity
Hello Joshua, Joshua Colp wrote:>> [portunity-out] >> type=friend >> host=iax.iaxport.de >> username=XXXXXXX >> secret=YYYYYY >> context=incoming-portunity >> notransfer=yes > 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.But should not asterisk here see, that the call is comming in from the host: host=iax.iaxport.de or from the username=iaxXXXXXX? In the SIP configuration I do it this way. Or need I to define some other parameters in the section [portunity-out] or easily rename it. If I get a call, asterisk says the following: (I hope everything is in :) ) ___CUT___ Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW Timestamp: 00009ms SCall: 00005 DCall: 00000 [82.139.223.1:4569] VERSION : 2 CALLED NUMBER : matthiasfechner CODEC_PREFS : (ulaw|alaw|gsm) CALLING NUMBER : matthiasfechner@sipportde CALLING PRESNTN : 1 CALLING TYPEOFN : 0 CALLING TRANSIT : 0 CALLING NAME : Matthias Fechner LANGUAGE : de USERNAME : iaxXXXXX FORMAT : 14 CAPABILITY : 63502 ADSICPE : 0 DATE TIME : 2006-05-30 11:50:48 Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: AUTHREQ Timestamp: 00004ms SCall: 00084 DCall: 00005 [82.139.223.1:4569] AUTHMETHODS : 3 CHALLENGE : 182242807 USERNAME : iaxXXXXX Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: AUTHREP Timestamp: 00032ms SCall: 00005 DCall: 00084 [82.139.223.1:4569] MD5 RESULT : 872efd005c628f31f74c2b142ca05cb5 Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX Subclass: ACK Timestamp: 00028ms SCall: 22848 DCall: 00004 [192.168.0.151:4569] Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: ACCEPT Timestamp: 00022ms SCall: 00084 DCall: 00005 [82.139.223.1:4569] FORMAT : 14 -- Call accepted by 82.139.223.1 (format unknown) -- Format for call is (gsm|ulaw|alaw) Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type: IAX Subclass: ACK Timestamp: 00022ms SCall: 00005 DCall: 00084 [82.139.223.1:4569] Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW Timestamp: 00018ms SCall: 00049 DCall: 00000 [82.139.223.1:4569] VERSION : 2 CALLED NUMBER : s CALLING NUMBER : matthiasfechner@sipportde CALLING NAME : Matthias Fechner LANGUAGE : de FORMAT : 2 CAPABILITY : 64798 ADSICPE : 0 DATE TIME : 2006-05-30 11:50:50 Tx-Frame Retry[-01] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: ACK Timestamp: 00018ms SCall: 00006 DCall: 00049 [82.139.223.1:4569] -- Accepting UNAUTHENTICATED call from 82.139.223.1: > requested format = gsm, > requested prefs = (), > actual format = ulaw, > host prefs = (ulaw|alaw|gsm), > priority = mine Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: ACCEPT Timestamp: 00008ms SCall: 00006 DCall: 00049 [82.139.223.1:4569] FORMAT : 4 ___CUT___ Best regards, Matthias Fechner