[sr-dev] Cannot Register To SIP Provider

Prashant Gupta prashant at farmguide.in
Sat Jan 5 11:35:04 CET 2019


That might not be possible from the providers end.
Can you suggest a way to forward sip REGISTER messages from kamailio config.

On Sat, Jan 5, 2019 at 4:03 PM David Villasmil <
david.villasmil.work at gmail.com> wrote:

> If you can get your provider to send to your kamailio, instead of to the
> registered UA, by whitelisting your kamailio IP, for instance, then you’re
> good.
>
> On Sat, 5 Jan 2019 at 11:26, David Villasmil <
> david.villasmil.work at gmail.com> wrote:
>
>> Is the outbound provider the same as the inbound?
>> In my case the inbound was sending calls to my unregistered kamailio (ip
>> whitelisting)
>> But the outbound provider requires registration.
>>
>> In my case, I just added to the gw configuration in freeswitch a proxy
>> with my kamailio. Something like:
>>
>> outboundproxy=4.3.2.1
>>
>> That should send all outbound regs and calls via your kamailio.
>>
>> But if in your case, your provider will use that registration to send YOU
>> calls, this will probably not work. You’d indeed need to register from
>> kamailio. Something I understand is possible, but never been able to do.
>> On Sat, 5 Jan 2019 at 06:07, Prashant Gupta <prashant at farmguide.in>
>> wrote:
>>
>>> Thanks for the reply. Can you please explain how can I achieve this?
>>> In this scenario, will the incoming calls still be routed through the
>>> kamailio. What about the outgoing calls?
>>> My use case to use kamailio was to send separate incoming numbers to
>>> separate asterisk servers. Do you think this is feasible with the solution
>>> of having asterisk register to SIP via kamailio.
>>>
>>> On Fri, Jan 4, 2019 at 4:18 PM David Villasmil <
>>> david.villasmil.work at gmail.com> wrote:
>>>
>>>> This exact same thing happened to me, and I found the easiest is to
>>>> register from your asterisk. Have kamailio just forward the registrations
>>>> and every asterisk will be registered normally.
>>>>
>>>> I know it’s not ideal, but I couldn’t make it work, and at least it’s
>>>> now working perfectly.
>>>>
>>>> On Fri, 4 Jan 2019 at 07:51, Prashant Gupta <prashant at farmguide.in>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>> I have the following architecture - SIP provider <-> Kamailio <->
>>>>> Asterisk servers
>>>>> I currently do not have any issues connecting my asterisk servers to
>>>>> Kamailio server. I am however having issues connecting my Kamailio server
>>>>> to my SIP provider. I am using the uac module for registration and have
>>>>> stored my credentials in the uacreg table. When I sniff on my network, I am
>>>>> able to see Register message being send out and receives an OK from my
>>>>> provider. But I am still unable to get incoming messages to Kamailio. Also
>>>>> these SIP responses from the SIP provider do not make it to kamailio route
>>>>> as I have logged any message that enter the request_route.
>>>>> SIP Messages from Wireshark -
>>>>> 1) 19 563.919267 10.67.XXX.XXX 10.232.XXX.XXX SIP 497 Request:
>>>>> REGISTER         sip:ims.airtel.in  (1 binding) |
>>>>>
>>>>> 2) 20 564.040917 10.232.XXX.XXX 10.67.XXX.XXX SIP 480 Status: 401
>>>>> Unauthorized |
>>>>>
>>>>> 3) 21 564.041574 10.67.XXX.XXX 10.232.XXX.XXX SIP 744 Request:
>>>>> REGISTER sip:ims.airtel.in  (1 binding) |
>>>>>
>>>>> 4) 22 564.173338 10.232.XXX.XXX 10.67.XXX.XXX SIP 649 Status: 200 OK
>>>>> (1 binding) |
>>>>>
>>>>> Here 10.232.XXX.XXX is my SIP providers proxy address and
>>>>> 10.67.XXX.XXX is my local IP of the lan connected to the SIP line.
>>>>> _______________________________________________
>>>>> Kamailio (SER) - Development Mailing List
>>>>> sr-dev at lists.kamailio.org
>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>>>>>
>>>> _______________________________________________
>>>> Kamailio (SER) - Development Mailing List
>>>> sr-dev at lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>>>>
>>> _______________________________________________
>>> Kamailio (SER) - Development Mailing List
>>> sr-dev at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>>>
>> _______________________________________________
> Kamailio (SER) - Development Mailing List
> sr-dev at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190105/8a64add3/attachment.html>


More information about the sr-dev mailing list