Hi All,
I am looking for a solution, how I can send the proper value in the from field at originate.
Example of my sip.conf:
register => <username>@<domainname>:<pwd>@<domainname>/<callerid>
[<callerid>]
type=peer
context=incoming
callerid=<callerid>
trustpid=no
sendrpid=no
canreinvite=no
fromdomain=<domainname>
fromuser=<username>
username=<username>
defaultusername=<username>
insecure=invite,port
disallow=all
allow=alaw, ulaw,
host=<domainname>
secret=<pwd>
nat=no
I use the following python call to originate the call:
enpointstr = 'SIP/' + b_nr + '@' + a_nr
response = ari_client.channels.originate(endpoint=enpointstr, app="ST-"+a_nr, callerId="SIP/" + a_nr, timeout=150)
If callerid=“SIP/” + a_nr then from field in the header of invite looks like:
From: “SIP/<a_nr?” <sip:<sip_cred>@>;tag=as1d2382f9
If callerid = a_nr
From: <sip:<sip_cred>@>;tag=as1d2382f9
I need the a_nr in from field as CLI, but without “SIP/”. Is there anyway to do this?
Thank you for your help