[OpenSIPS-Users] Problem with force send socket.
Ola Karlsson
skalle.karlsson at gmail.com
Tue Nov 11 19:51:53 CET 2008
Lightning fast Bogdan.. ;-)
I think so.
#opensips
Listening on
udp: 127.0.0.1 [127.0.0.1]:5060
udp: 195.x.x.101 [195.x.x.101]:5060
udp: 195.x.x.106 [195.x.x.106]:5060
udp: 10.x.x.102 [10.x.x.102]:5060
tcp: 127.0.0.1 [127.0.0.1]:5060
tcp: 195.x.x.101 [195.x.x.101]:5060
tcp: 195.x.x.106 [195.x.x.106]:5060
tcp: 10.x.x.102 [10.x.x.102]:5060
#netstat -lut | grep sip
tcp 0 0 10.100.100.102:sip *:*
LISTEN
tcp 0 0 195.x.x.106:sip *:* LISTEN
tcp 0 0 195.x.x.101:sip *:* LISTEN
tcp 0 0 localhost:sip *:*
LISTEN
udp 0 0 10.x.x.102:sip *:*
udp 0 0 195.x.x.106:sip *:*
udp 0 0 195.x.x.101:sip *:*
udp 0 0 localhost:sip
*:*
/Ola
On Tue, Nov 11, 2008 at 7:37 PM, Bogdan-Andrei Iancu <bogdan at voice-system.ro
> wrote:
> Hi Ola,
>
> Is your opensips listening on udp:195.x.x.106:5060 ?
>
> Regards,
> Bogdan
>
> Ola Karlsson wrote:
>
>> Hi List.
>>
>> Have some problems with the force_send_socket function.
>>
>> I have one Opensips 1.4 server with two physical interfaces and one alias
>> interface.
>>
>> eth0 195.x.x.101/28
>> eth0:1 195.x.x.106/28
>>
>> eth1: 10.x.x.x
>>
>> The script looks something like this where I use the force_send_socket
>> function.
>>
>> if(uri=~"sip:0009.*") {
>> force_send_socket(udp:195.x.x.106:5060);
>> strip(4);
>> rewritehostport("195.x.x.102:5060");
>> route(1);
>> }
>>
>> In the end the Via field is set to 106 but NOT the source IP that stays
>> .101 ..
>>
>> Am I doing something wrong with this function or is OpenSIPS giving me a
>> hard time?
>>
>> /Ola
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20081111/7ae7a359/attachment.htm
More information about the Users
mailing list