Sip custom tag in Header

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Sip custom tag in Header

Postby gerlado » Mon Jan 04, 2016 12:51 pm

Hello ,

I have a issues with sip header asterisk , i need to add in header tag custom variables,
one exemple:
exten => _X.,4,SIPAddHeader(X-IdLista: 123) (123 -> this should be dynamic from result in database where number call is number that are called)
exten => _X.,5,SIPAddHeader(X-CallId: 10005) ( and this)
exten => _X.,6,SIPAddHeader(X-IdContatto: 12587) ( and this)

If use ${CALLERID(num)} function i get the cli number but i need get id or name or other data in database where the number dialed is in the database

Can help me with one function asterisk for get this data from database or any other solution.

Thanks in advance for support.
gerlado
Newsterisk
 
Posts: 2
Joined: Mon Jan 04, 2016 12:31 pm

Re: Sip custom tag in Header

Postby david55 » Mon Jan 04, 2016 2:19 pm

david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: Sip custom tag in Header

Postby ambiorixg12 » Mon Jan 04, 2016 3:35 pm

I posted an exmaple on the following thread, this could help you viewtopic.php?f=1&t=96395
ambiorixg12
Astmaster
 
Posts: 967
Joined: Sun Mar 04, 2007 9:32 pm
Location: Dominican Republic

Re: Sip custom tag in Header

Postby gerlado » Mon Jan 11, 2016 6:54 am

Thanks for support david55, i have tried this but not supported in asterisk 1.4

i have solution for 1.4 with odbc
http://www.voip-info.org/wiki/view/Aste ... +func_odbc
gerlado
Newsterisk
 
Posts: 2
Joined: Mon Jan 04, 2016 12:31 pm


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest