|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
syntax errorhi,
i am new to kamailio, getting syntax error: $var(test) = "udp:"+$rd+":"+$rp; t_relay_to_udp($var(test)); t_relay_to_udp($rd,$rp); working with string. is there any reason ? how to resolve it ? i have to use database so i need to use variable. any suggestion is appreciated. thanks _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: syntax errorHello,
On 04.11.2009 14:34 Uhr, GEMINORIUM crux wrote: > hi, > i am new to kamailio, > > getting syntax error: > > $var(test) = "udp:"+$rd+":"+$rp; > t_relay_to_udp($var(test)); > > t_relay_to_udp($rd,$rp); > > working with string. > > is there any reason ? how to resolve it ? > i have to use database so i need to use variable. > > any suggestion is appreciated. $du = "sip:"+$rd+":"+$rp; t_relay(); Cheers, Daniel -- Daniel-Constantin Mierla * http://www.asipto.com/ _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
|
|
|
Re: syntax errordanial,
i need to use database and also i have to convert protocol Just give me some answer : 1. is there any other way to convert protocol like : $dP = "udp"; //it also give syntex in that case i can use t_relay(); 2. why t_relay_to_udp($var(test))/t_relay_to_udp($rd,$rp); is giving syntax error ? OR Is t_relay_to_udp($var(test))/t_relay_to_udp($rd,$rp) can take input other than static string ? any suggestion is appreciated. thanks On Thu, Nov 5, 2009 at 1:35 PM, Daniel-Constantin Mierla <miconda@...> wrote: don't forget -- always cc the mailing list. _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: syntax errorOn 05.11.2009 10:04 Uhr, GEMINORIUM crux wrote: > danial, > > i need to use database and also i have to convert protocol > > Just give me some answer : > > 1. is there any other way to convert protocol like : > $dP = "udp"; //it also give syntex > in that case i can use t_relay(); > > 2. why t_relay_to_udp($var(test))/t_relay_to_udp($rd,$rp); is giving > syntax error ? > OR > Is t_relay_to_udp($var(test))/t_relay_to_udp($rd,$rp) can take input > other than static string ? > > > any suggestion is appreciated. $du = "sip:" + __username__ + "@" + __domain__ + ":" + __port__ + ";transport=" + __transportvalue__; Replace __xyz__ with appropriate values/variables; Cheers, Daniel > > thanks > > > > On Thu, Nov 5, 2009 at 1:35 PM, Daniel-Constantin Mierla > <miconda@... <mailto:miconda@...>> wrote: > > don't forget -- always cc the mailing list. > > > > On 05.11.2009 5:39 Uhr, GEMINORIUM crux wrote: > > Daniel, > i am transferring tls protocol to udp protocol, > sorry, i don't mention it. > > client <---tls----> kamilio <----udp---> asterisk > > thanks for your reply. > > > On Wed, Nov 4, 2009 at 7:38 PM, Daniel-Constantin Mierla > <miconda@... <mailto:miconda@...> > <mailto:miconda@... <mailto:miconda@...>>> wrote: > > Hello, > > > On 04.11.2009 14:34 Uhr, GEMINORIUM crux wrote: > > hi, > i am new to kamailio, > > getting syntax error: > $var(test) = "udp:"+$rd+":"+$rp; > t_relay_to_udp($var(test)); > > t_relay_to_udp($rd,$rp); > > working with string. > > is there any reason ? how to resolve it ? > i have to use database so i need to use variable. > > any suggestion is appreciated. > > you have to do: > > $du = "sip:"+$rd+":"+$rp; > t_relay(); > > Cheers, > Daniel > > -- Daniel-Constantin Mierla > * http://www.asipto.com/ > > > > -- > Daniel-Constantin Mierla > * http://www.asipto.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Kamailio (OpenSER) - Users mailing list > Users@... > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users > http://lists.openser-project.org/cgi-bin/mailman/listinfo/users -- Daniel-Constantin Mierla * http://www.asipto.com/ _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
|
|
Re: syntax errordanial,
it worked !!! thanks a lot man. On Thu, Nov 5, 2009 at 3:38 PM, Daniel-Constantin Mierla <miconda@...> wrote:
_______________________________________________ Kamailio (OpenSER) - Users mailing list Users@... http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users |
| Free embeddable forum powered by Nabble | Forum Help |