Hi,
My provider need P-Access-Network-Info header.
How or where can i add this SIP header
thanks for your help
HI,
i don’t see where and how put custom sip header for my provider in this file
Can you give me an example please
so i add this line in the Dialplan for outbound calls :
table.insert(xml, [[<action application="set" data='sip_h_P-Access-Network-Info=GSTN;operator-specific-GI="XXXXXXXX";network-provided'/>]]);
now i would like to replace XXXXXX by the zip code of the customer… what is the variable in ASTPP
please
Hi @jcattan
you need the userinfo[‘postal_code’] variable.
table.insert(xml, [['<'action application=“set” data=“sip_h_P-Access-Network-Info=GSTN;operator-specific-GI=]] … userinfo[‘postal_code’] … [[;network-provided”/>]]);
just the bit in bold
This was the result of my test:
set(sip_h_P-Access-Network-Info=GSTN;operator-specific-GI=2191;network-provided)
2191 was pulled from the accounts table - postal_code
Thanks a lot for your reply !
i’ve try with table.insert(xml, [[<action application="set" data='sip_h_P-Access-Network-Info=GSTN;operator-specific-GI="]]..customer_userinfo['postal_code']..[[";network-provided'/>]]);
be careful with " double quote " and ’ simple quote ’ because the final format mut be :
P-Access-Network-Info=GSTN;operator-specific-GI=“2191”;network-provided