Eugene Prokopiev wrote: > # cat sip.conf > [general] > context=incoming > ... > register => login:[EMAIL PROTECTED] > ... > [sipnet.ru] > type=user > host=sipnet.ru > context=sipnet-incoming > allow=alaw > allow=ulaw > nat=no > canreinvite=no > dtmfmode=info > > # cat extensions.conf > [sipnet-incoming] > exten => s,1,Answer() > exten => s,2,Playback(hello-world) > exten => s,3,Hangup() > > On calling I got: > > May 11 14:09:13 NOTICE[1091873088]: pbx.c:2115 pbx_extension_helper: > Cannot find extension context 'incoming' > > So, how can I redirect call to context sipnet-incoming?
because you need to find out what username sipnet.ru will connect to you with. you have: [sipnet.ru] type=user host=sipnet.ru if a call comes in from sipnet.ru, what username does it pass? it's not always the hostname. usually, you'll need the name it passes to you as the name between the brackets: [username] type=user host=sipnet.ru and since it's not passing sipnet.ru, it's an unauthenticated sip call and according to your [general] settings, you have context=incoming which means that unauthenticated sip calls will go to that context. -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Callweaver-users mailing list [email protected] http://lists.callweaver.org/mailman/listinfo/callweaver-users
