Asterisk Realtime error on dial plan

Hi, would look something like this on a normal .conf file (but it is in the database now), and it is working on asterisk 1.4 version
but I get these error, somehow it is not parsing the “|” on the appdata string and still looks for a peer name like 999100001|60|TtrkK which asterisk will not be able to find since the peer name is 999100001 only

is this a bug?

– Executing Dial(“SIP/999100005-0821ab00”,
“SIP/999100001|60|TtrkK”)
[Oct 14 03:50:32] DEBUG[16728]: chan_sip.c:19558 sip_request_call: Asked to create a SIP channel with formats: 0x4 (ulaw)
== Using SIP RTP CoS mark 5
[Oct 14 03:50:32] DEBUG[16728]: chan_sip.c:5935 sip_alloc: Allocating new SIP dialog for (No Call-ID) - INVITE (With RTP)
[Oct 14 03:50:32] DEBUG[16728]: res_config_mysql.c:868 mysql_reconnect: MySQL RealTime: Connection okay.
[Oct 14 03:50:32] DEBUG[16728]: res_config_mysql.c:151 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM sip_peers WHERE name = ‘999100001|60|TtrkK’ AND host = ‘dynamic’
[Oct 14 03:50:32] DEBUG[16728]: res_config_mysql.c:868 mysql_reconnect: MySQL RealTime: Connection okay.
[Oct 14 03:50:32] DEBUG[16728]: res_config_mysql.c:151 realtime_mysql: MySQL RealTime: Retrieve SQL: SELECT * FROM sip_peers WHERE name = ‘999100001|60|TtrkK’
[Oct 14 03:50:32] WARNING[16728]: chan_sip.c:4181 create_addr: No such host: 999100001|60|TtrkK
[Oct 14 03:50:32] DEBUG[16728]: chan_sip.c:19635 sip_request_call: Cant create SIP call - target device not registred

anybody there?

your problem is rather vague. so dont blaim people here for not responding :wink:

it seems you got dial plans and such in an SQL database?

and that your dial plan doesnt get the pipeline right?

i dont know the answer to it though, but it might make it easier for others to answer.

Try use the , (comma) instead of the | (pipe) to separate parameters when you call a dialplan command or function, in extensions.conf.

Cheers.

Marco Bruni

No, my dial plan is in mysql db and it is working on 1.4 version which is odd right? Or did they announce this changes and I am not just informed?

What version of * are you using ?
Perhaps this discussion is interesting to you: lists.digium.com/pipermail/aster … 33064.html .

Cheers.

Marco Bruni

Im trying asterisk 1.6

So no more pipes, just commas.

Cheers.

Marco Bruni

From the file doc/UPGRADE.txt, Asterisk 1.6.0.1:

Docs are there to be read :wink:

Cheers.

Marco Bruni

yeah that’s what I’ve been looking for, thanks for that.