Hello! Looks like faq, but... Could you , please, point me on how to convert this [cisco] type=friend host=192.168.22.253 insecure=port,invite to pjsip? as you can see another side is very old cisco router, so I can't change anything there. I don't see any examples here https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip#Migratingfromchan_siptores_pjsip-ExampleSIPTrunkConfiguration on insecure=port,invite? psjip? equivalent. Thank you!
On Thu, Nov 2, 2017, at 04:50 AM, Dmitry Melekhov wrote:> Hello! > > Looks like faq, but... > > Could you , please, point me on how to convert this > > > [cisco] > type=friend > host=192.168.22.253 > insecure=port,invite > > > to pjsip?The equivalent is this: [mytrunk] type=identify endpoint=mytrunk match=203.0.113.1>From the page you linked. That says "Match incoming traffic from203.0.113.1 and use endpoint mytrunk for it". You also need an endpoint defined like: [mytrunk] type=endpoint context=from-external disallow=all allow=ulaw -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Thank you very much! It works. Although there is one strange thing here- there is no ringback tone on cisco's side when pjsip is use, but this is another story :-) 02.11.2017 14:17, Joshua Colp ?????:> On Thu, Nov 2, 2017, at 04:50 AM, Dmitry Melekhov wrote: >> Hello! >> >> Looks like faq, but... >> >> Could you , please, point me on how to convert this >> >> >> [cisco] >> type=friend >> host=192.168.22.253 >> insecure=port,invite >> >> >> to pjsip? > The equivalent is this: > > [mytrunk] > type=identify > endpoint=mytrunk > match=203.0.113.1 > > From the page you linked. That says "Match incoming traffic from > 203.0.113.1 and use endpoint mytrunk for it". > > You also need an endpoint defined like: > > [mytrunk] > type=endpoint > context=from-external > disallow=all > allow=ulaw >