[SR-Users] hox to a SIPtrunk with kamailio 3.0.0

alexis heron alexis.heron at crihan.fr
Tue Apr 13 16:56:10 CEST 2010


Iñaki Baz Castillo wrote:
> 2010/4/13 alexis heron <alexis.heron at crihan.fr>:
>   
>> Hi,
>>
>> I would like to make a SIPTrunk with kamailio to redirect to a 9xx numbers
>> in Cisco Call manager, can you help me please.
>> Here's what I did but it does not work.
>>     
>
> Please specify the exact error you have. "It does not work" is not a
> good description and it's difficult to help in this way.
>
>
>   
>> if (uri=~"sip:9[0-9][0-9]@ccm-ipv6.crihan.fr") {
>>     
>
> <ironic>Thanks again for considering my suggestion.</ironic>
>
>
>   
>>               log(1, "Matched Cisco Call Manager");
>>               route(4);
>>       };
>>
>>
>> route(4) {
>>       log(1, "In route[4]");
>>
>>       rewritehostport("195.221.29.145.fr:5060");
>>     
>
> Have you rechecked this address "195.221.29.145.fr:5060" ?
>
>
>   

yes, I rechecked this address and it's good, here's the error :

0(3736) : <core> [cfg.y:3331]: parse error in config file 
/usr/local/etc/kamailio/kamailio.cfg, line 645, column 10: syntax error
 0(3736) : <core> [cfg.y:3331]: parse error in config file 
/usr/local/etc/kamailio/kamailio.cfg, line 645, column 10: bad command: 
missing ';'?
 0(3736) : <core> [cfg.y:3331]: parse error in config file 
/usr/local/etc/kamailio/kamailio.cfg, line 645, column 10: bad command
 0(3736) : <core> [cfg.y:3331]: parse error in config file 
/usr/local/etc/kamailio/kamailio.cfg, line 656, column 32: Command 
cannot be used in the block

 0(3736) : <core> [cfg.y:3331]: parse error in config file 
/usr/local/etc/kamailio/kamailio.cfg, line 662, column 1: syntax error
 0(3736) : <core> [cfg.y:3331]: parse error in config file 
/usr/local/etc/kamailio/kamailio.cfg, line 662, column 1:
ERROR: bad config file (6 errors)

line 645 :route(4) {
line 656:  sl_reply_error();
line 662: }
thank you




More information about the sr-users mailing list