[SR-Users] syntax error with kamailio
alexis heron
alexis.heron at crihan.fr
Tue Apr 13 15:18:44 CEST 2010
marius zbihlei wrote:
> alexis heron wrote:
>>
>> # Sample failure route
>> failure_route[FAIL_ONE] {
>> #!ifdef WITH_NAT
>> if (is_method("INVITE")
>> && (isbflagset("6") || isflagset(5))) {
>> unforce_rtp_proxy();
>> }
>> #!endif
>>
>> if (t_is_canceled()) {
>> exit;
>> }
>>
>> # uncomment the following lines if you want to block client
>> # redirect based on 3xx replies.
>> ##if (t_check_status("3[0-9][0-9]")) {
>> ##t_reply("404","Not found");
>> ## exit;
>> ##}
>>
>> # uncomment the following lines if you want to redirect the failed
>> # calls to a different new destination
>> ##if (t_check_status("486|408")) {
>> ## sethostport("192.168.2.100:5060");
>> ## append_branch();
>> ## # do not set the missed call flag again
>> ## t_relay();
>> ##}
>> }
>>
>> ##########Correspondance avec numéro de téléphone##########
>>
>> if (uri=~"9[0-9][0-9]@.*") {
>> log(1, "Matched Cisco Call Manager");
>> route(4);
>
> Hello
>
> The if(uri=~...) check is outside of any route[], failure_route[]
> declaration. because of the "}" closed paranthesys 5 lines above
> which closes failure_route[FAIL_ONE]
>
> So my editor says...
>
> Marius
>
In fact, I woul like to mount a TrunkSIP to call numbers 9xx, that's how
we do??
thank you
More information about the sr-users
mailing list