[Serusers] weird routing Asterisk -> ser

Iqbal iqbal at gigo.co.uk
Mon Apr 4 13:25:30 CEST 2005


replace

(uri =~ "sip:8[0-9].@*"){

with

(uri =~ "^sip:8[0-9].@*"){

just a small correction, as for the long number are u usiong lcr tables anywhere in ur config, cause i cant see where else it would be getting that from, can u post u entire ser.cfg

Iqbal


Barry Murphy wrote:

>Ok,
>
>So i'm trying to get ser to accept calls via asterisk (which I use for my
>voip termination).
>I dialed 85283363 from asterisk, however my SER receives the call and for
>some reason
>forwards the call to 64273040757
>
>###########################################
># in extension.conf
>###########################################
>exten => _8.,1,Dial(SIP/max.fast.co.nz/${EXTEN},60,t)
>exten => _8.,2,Hangup
>
>
>###########################################
># in ser.cfg (i'm guessing this accepts calls with the prefix 8
>###########################################
>        if (method == "INVITE") {
>                if (uri =~ "sip:8[0-9].@*"){
>                        log(1, "Forwarding to Asterisk\n");
>                        rewritehostport("202.150.105.150:5070");
>                        t_relay();
>                        break;
>                }
>         }
>
>
>The sip from shows call coming from 2206, which is correct, it sees it going
>to 82583363, the INVITE goes to 64273040757.
>
>      caller_UUID callee_UUID sip_from sip_to sip_status sip_method i_uri
>o_uri from_uri to_uri sip_callid username domain fromtag totag time
>timestamp caller_deleted callee_deleted
>
>          Barry <sip:2206 at voip.fast.co.nz>;tag=2604881704
><sip:85283363 at voip.fast.co.nz>;tag=0011219c488307c... 200 INVITE
>sip:85283363 at voip.fast.co.nz sip:64273040757 at voip.fast.co.nz
>sip:2206 at voip.fast.co.nz sip:85283363 at voip.fast.co.nz
>5E6EFD0E-A920-412B-B760-C7F29E96E7AC at 10.200.3.173 2206 voip.fast.co.nz
>2604881704 0011219c488307ca4af6c9fb-0b9b8c1b 2005-04-04 01:13:59
>20050404131359 0 0
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>.
>
>  
>




More information about the sr-users mailing list