[SR-Users] dp_translate() pseudovariables

2013-06-25 Thread Victor V. Kustov
Hi all! can I use $dlg_var() in dp_translate()? ok, in common form: why some functions fail to use $dlg_var()? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.6-calculate GNU/Linux ___ SIP Express Ro

Re: [SR-Users] Does Kamailio provide any API for other program to create sip account

2013-06-25 Thread Xiangwen Chen
Thanks David, My user account system is written in Python, can "kamctl" script be called in a python program? if not, can the user account system directly access the kamailio database, and do an SQL insert to create a new sip account? Thanks in advance! __

Re: [SR-Users] Does Kamailio provide any API for other program to create sip account

2013-06-25 Thread cxw1987
Thanks David, I will try it.for this you can do an SQL insert into your DB backend. There is no "exposed" API there is kamctl to add users, but that does not expose any external interface. you could probably call it from some code but all it does it perform an SQL query to kamailio db anyway.

Re: [SR-Users] Does Kamailio provide any API for other program to create sip account

2013-06-25 Thread David | StyleFlare
for this you can do an SQL insert into your DB backend. There is no "exposed" API there is kamctl to add users, but that does not expose any external interface. you could probably call it from some code but all it does it perform an SQL query to kamailio db anyway. Hope that helps. On 6/

[SR-Users] Does Kamailio provide any API for other program to create sip account

2013-06-25 Thread Xiangwen Chen
Hello, I am developing a sip VoIP app in IOS, which want to provide the feature of allowing user to create sip account from client side. I use Kamailio as sip server. My thought is when user register to the the user account system, the user account system can communicate with Kamailio, create

Re: [SR-Users] SIP Trunks Location

2013-06-25 Thread Stoyan Mihaylov
Surely there must be a better way. For example, if you are a good client for your provider, you can ask him to forward all calls to your IP. This way, Kamailio will accept all calls and forward them to multiple Asterisk boxes for processing. Also - you can put one Asterisk to do only one thing - ac

Re: [SR-Users] Kamailio Crashing with excessive Via headers

2013-06-25 Thread Daniel-Constantin Mierla
Hello, can you reproduce it always? If yes, looks like a buffer overflow somewhere -- recompile with MEMDBG=1, like: make cfg MEMDBG=1 ... (add your specific compile config options as well) Then run with core parameters memdbg and memlog having values lower than debug. Get all the log mess

Re: [SR-Users] Issue with Location table

2013-06-25 Thread Ali Jawad
Hi Atle Thanks for the input, however please note that it was working fine until I did insert the few lines above. Having said that I am running Kamailio 3.4 on that particular server. Regards On Tue, Jun 25, 2013 at 4:05 PM, Atle Samuelsen wrote: > Howdy Ali, > > What version of Kamailio and my

Re: [SR-Users] Issue with Location table

2013-06-25 Thread Atle Samuelsen
Howdy Ali, What version of Kamailio and mysql are you running? If you are running a VERY (yes, VERY) old version.. of both, you might end up in a case, where you will see that the location database will be updated in the beginning (just after you restart your proxy) but not afterwords. try to r

[SR-Users] Kamailio Crashing with excessive Via headers

2013-06-25 Thread Krishna Kurapati
In 4.x, Following message is crashing the Kamailio. MESSAGE sip:50.62.12.174:15060;transport=udp SIP/2.0..Via: SIP/2.0/UDP 50.62.72.174:15060;branch=z9hG4bK.defaafa4.0..Via: SIP/2.0/UDP 50.62.72.174:15060;branch=z9hG4bK.cefaafa4.0.. Via: SIP/2.0/UDP 50.62.12.174:15060;branch=z9hG4bK.

Re: [SR-Users] Issue with Location table

2013-06-25 Thread Ali Jawad
That is logical, however in that case shouldn't the location table in memory be also missing entries ? On Tue, Jun 25, 2013 at 3:37 PM, Olle E. Johansson wrote: > > 25 jun 2013 kl. 14:34 skrev Ali Jawad : > > Dear All > > I had an issue with my kamailio that non-registered users were able to >

Re: [SR-Users] Kamailio+Asterisk Integrated server: 481 dialog/transaction does not exists error

2013-06-25 Thread Gertjan Wolzak
Hello, Just looking at the capture file, it shows that the Kamailio sends a 200 ok on your invite. The call never gets relayed to the Asterisk box. Maybe you can take http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb as a guide, get this working and then start

Re: [SR-Users] Issue with Location table

2013-06-25 Thread Olle E. Johansson
25 jun 2013 kl. 14:34 skrev Ali Jawad : > Dear All > > I had an issue with my kamailio that non-registered users were able to send > calls "I.e. similar to Asterisk Peer mode" . So I did add the following > statement > > if(!reg_fetch_contacts("location", "$fu", "caller")) > { >sl_send_r

[SR-Users] Issue with Location table

2013-06-25 Thread Ali Jawad
Dear All I had an issue with my kamailio that non-registered users were able to send calls "I.e. similar to Asterisk Peer mode" . So I did add the following statement if(!reg_fetch_contacts("location", "$fu", "caller")) { sl_send_reply("403", "Please register first"); exit; } That did fix