[SR-Users] Kamailio - Asterisk, problem with SIP trunk mode

David | StyleFlare david at styleflare.com
Mon Jun 17 22:37:42 CEST 2013


When your Asterisk Box sends calls back to Kamailio do IP auth on the 
Kamailio and let traffic pass because its from a trusted source.



On 6/17/13 4:27 PM, Mickael MONSIEUR wrote:
> Sorry, I do not understand everything. Can you detail please?
>
>
> 2013/6/17 David | StyleFlare <david at styleflare.com 
> <mailto:david at styleflare.com>>
>
>     You will have to do IP auth on the Kamailio coming from Asterisk
>
>
>     On 6/17/13 4:07 PM, Mickael MONSIEUR wrote:
>>     Hello,
>>     First, i have 7 years experience with Asterisk, but I started a
>>     project with Kamailio, forgive me in advance if I say silly
>>     things...! ;-)
>>
>>     I set up a classic Asterisk / Kamailio configuration:
>>     sip phones -> kamailio -> asterisk -> sip trunks/pstn.
>>
>>     When a call comes from the PSTN side, if I configure Asterisk as
>>     follows:
>>
>>     [012345678]
>>     type = friend
>>     username = 012345678
>>     secret = xxxxxxx
>>     host = dynamic
>>     fromdomain = sip.mydomain.com <http://sip.mydomain.com>
>>     fromuser = 012345678
>>
>>     Standard mode:
>>     exten => 012345678, 1, Dial(SIP/012345678) -> The call is
>>     redirected on the phone by Kamailio ! :-)
>>
>>     ------------------------------------------------------------------------------------------------------------------------------------------------
>>
>>
>>     Trunk mode:
>>
>>     [mytrunk]
>>     type = friend
>>     username = mytrunkUser
>>     secret = xxxxxxx
>>     host = dynamic
>>     fromdomain = sip.mydomain.com <http://sip.mydomain.com>
>>     fromuser = mytrunkUser
>>
>>
>>     exten => 012345678, 1, Dial(SIP/mytrunk/012345678) -> The call is
>>     rejected by Kamailio....
>>     exten => 012345679, 1, Dial(SIP/mytrunk/012345679) -> The call is
>>     rejected by Kamailio ....
>>
>>
>>     My question is how to allow the routing of multiple numbers
>>     (trunk mode) in a SIP account with Kamailio?
>>     Best regards,
>>     Mickael
>>
>>
>>
>>     _______________________________________________
>>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>     sr-users at lists.sip-router.org  <mailto:sr-users at lists.sip-router.org>
>>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>     _______________________________________________
>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
>     list
>     sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130617/9cec78a9/attachment.html>


More information about the sr-users mailing list