Hi Team,
Greetings of the day,we are using asterisk 19 and when we are passing user =phone one time but in sip traces getting 2 times. Pjsip.conf and extension.conf and tcp dump has been attached kindly suggest.
Thanks
Akhil Kumar Dogra
Hi Team,
Greetings of the day,we are using asterisk 19 and when we are passing user =phone one time but in sip traces getting 2 times. Pjsip.conf and extension.conf and tcp dump has been attached kindly suggest.
Thanks
Akhil Kumar Dogra
PJSIP Configuration:
[6001]
type=endpoint
context=outdial
disallow=all
allow=ulaw
transport=transport-udp
auth=auth6001
aors=6001
send_pai=no
from_domain=129.0.164.11;transport=udp;user=phone
;from_user=192.168.140.211;transport=udp;user=phone
;from_user=6001
[6001]
type=aor
;max_contacts=1
contact=sip:129.0.169.151:5060
[auth6001]
type=auth
auth_type=userpass
password=6001
username=6001
Extentions.conf
[time]
exten => _X.,30000(time),NoOp(Time: ${EXTEN} ${timezone})
same => n,Wait(0.25)
same => n,Answer()
; the amount of delay is set for English; you may need to adjust this time
; for other languages if there’s no pause before the synchronizing beep.
same => n,Set(FUTURETIME=$[${EPOCH} + 12])
same => n,SayUnixTime(${FUTURETIME},Zulu,HNS)
same => n,SayPhonetic(z)
; use the timezone associated with the extension (sip only), or system-wide
; default if one hasn’t been set.
same => n,SayUnixTime(${FUTURETIME},${timezone},HNS)
same => n,Playback(spy-local)
same => n,WaitUntil(${FUTURETIME})
same => n,Playback(beep)
same => n,Return()
;
; ANI context: use in the same way as “time” above
;
[ani]
exten => _X.,40000(ani),NoOp(ANI: ${EXTEN})
same => n,Wait(0.25)
same => n,Answer()
same => n,Playback(vm-from)
same => n,SayDigits(${CALLERID(ani)})
same => n,Wait(1.25)
same => n,SayDigits(${CALLERID(ani)}) ; playback again in case of missed digit
same => n,Return()
; For more information on applications, just type “core show applications” at your
; friendly Asterisk CLI prompt.
;
; "core show application " will show details of how you
; use that particular application in this file, the dial plan.
; “core show functions” will list all dialplan functions
; "core show function " will show you more information about
; one function. Remember that function names are UPPER CASE.
[predial]
exten =>_X.,1,Verbose(1, In Predial)
same=>n,Set(CALLERID(num)=8798)
same=>n,Set(CALLERID(name)=+8798)
same=>n,Set(PJSIP_HEADER(add,P-Asserted-Identity)=sip:+8798@129.0.164.11\;transport=udp\;user=phone)
same=>n,Return
[outdial]
exten =>_X.,1,Verbose(1, set headers)
same=>n,Verbose(1, ${EXTEN})
same=>n,Set(CALLERID(num)=8798)
same=>n,Set(CALLERID(name)=+8798)
same=>n,Verbose(1,${CALLERID(all)})
same=>n, Dial(PJSIP/${EXTEN}@6001,b(predial^${EXTEN}^1))
Is the user_eq_phone functionality not sufficient? Trying to do parameters like that for from_domain isn’t really tested, it’s strictly meant to be a domain.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.