I found a part of the problem. 
The kam cfg reg ex had a typo, which i've removed.  

        1. route[FSVBOX] {
        2.         if(!($rU=~"^1[0-9][0-9]+$"))
        3.                 return;
        4.         prefix("vb-");
        5.         route(FSRELAY);
        6. }

So now when I dial 44888 the request makes it to the freeswitch server.  But it 
bounces it right back to kamailio... and kamailio tries to find an extension 
called 44888 which doesn't exist.  I think its because the number 44888 matches 
a regex i have in my main freeswitch dialplan... which is supposed to be for 
connecting calls between extensions. 
I guess I will have to revisit it to make it more specific... perhaps to ignore 
calls that come in with a vb- prefix... or any prefix for that matter. 

Thanks.  And sorry for the noise.  


________________________________
 From: mark li <limar...@yahoo.com>
To: "sr-users@lists.sip-router.org" <sr-users@lists.sip-router.org> 
Sent: Friday, March 28, 2014 3:33:26 PM
Subject: [SR-Users] Trying to dial 4000 into freeswitch's vmail system - Kam    
Proxy returning Status 403: Not allowed
 


Hi there. 
I'm still trying to integrate Kamailio and freeswitch... where kamailio acts as 
a proxy and registrar ... and freeswitch provides conference calls and 
voicemail. 
I have calls between two polycoms working and conference calls work. 
But when I try to leave a voice message for a user by dialing 44+ext, the sip 
proxy never replies to the polycom. 
I did a tcpdump and i can see the INVITE from the polycom to the sip proxy 
multiple times... but no response back.  The phone eventually disconnects 
itself. 

Here's what my config looks like:  http://pastebin.com/wWgyVcxc
Just do a search for "route[FSDISPATCH]". 
You will see how I check for the "44" prefix, and then send the call to a route 
called "FSVBOX".  
Any suggestions would be appreciated. 


        1. route[FSVBOX] {
        2.         if(!($rU=~"^1[0-9][0-9]+$"))
        3.                 return;
        4.         prefix("vb-");
        5.         route(FSRELAY);
        6. }
        7.  
        8. # Send to FreeSWITCH
        9. route[FSRELAY] {
        10.         $du = "sip:" + $sel(cfg_get.freeswitch.bindip) + ":"
        11.                         + $sel(cfg_get.freeswitch.bindport);
        12.         route(RELAY);
        13.         exit;
        14. }
        15. 

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@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@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to