[Asterisk-Users] rout call from ser to asterisk

Cameron Beattie kjcsb at orcon.net.nz
Wed Apr 6 23:05:20 MST 2005


On a quick glance you don't have anything in ser.cfg that sends the message 
on to Asterisk e.g. rewritehostpost("asteriskip:asteriskport") and 
forward(uri:host, uri:port). I recommend you read the sip.edu cookbook for 
configuring ser (took me about 5 reads but I'm a slow learner).

Regards

Cameron
----- Original Message ----- 
From: "Kamran Ahmad" <p_kami at yahoo.com>
To: <asterisk-users at lists.digium.com>
Sent: Thursday, April 07, 2005 4:01 PM
Subject: [Asterisk-Users] rout call from ser to asterisk


> hello
>
> i have a prblem in routing call from ser to asterisk.
>
> i have the following senrio.
>
> UA is registered at ser
> when UA calls another UA ser try to look for the user
> not found then forword the call to other side
> asterisk.
>
>
> problem i am facing that ser is not forwording request
> to  asterisk
>
> extensions.conf
> ----------------------------------------
> exten=>2000,1,Dial(SIP/${EXTEN})
> exten=>2000,2,Voicemail,u2000
> exten=>2000,102,Voicemail,b2000
>
> exten=>3000,1,Dial(SIP/${EXTEN})
> exten=>3000,2,Voicemail,u3000
> exten=>3000,102,Voicemail,b3000
>
>
> ser.cfg
> -------------------------------------------
> route{
>        lookup("location");
>        t_on_failure("1");
>        t_relay();
>
>
>       if (!mf_process_maxfwd_header("10")) {
>                sl_send_reply("483","Too Many Hops");
>                break;
>        };
>        if ( msg:len > max_len ) {
>                sl_send_reply("513", "Message too
> big");
>                break;
>        };
>
>                                                  if
> (loose_route()) {
>                t_relay();
>                break;
>        };
>
>
>        setflag(1);
>        if (method=="INVITE") record_route();
>
>
>        if (uri==myself) {
>
>
>                if (method=="REGISTER") {
>
>
>           if(!radius_www_authorize("")) {
>                                www_challenge("","0");
>                                break;
>                        }
>
>
>                        save("location");
>                        break;
>                };
>
>
>                if (!lookup("location")) {
>                        sl_send_reply("404", "Not
> Found");
>                        break;
>                };
>        };
>
>        if (!t_relay()) {
>                sl_reply_error();
>        };
>
>
> }
>
> failure_route[1] {
>
>
>        if(t_check_status("486")) {
>                # busy, so rewrite to new location
> here, then:
>                forward( 192.168.8.97, 5060 );
>                t_relay();
>        }
> }
> ----------------------------------------------------
> Thanks
> Kamran
>
>
>
> __________________________________
> Yahoo! Messenger
> Show us what our next emoticon should look like. Join the fun.
> http://www.advision.webevents.yahoo.com/emoticontest
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
> 




More information about the asterisk-users mailing list