Hi there,
I use a Mikopbx (v2021.4.175) and have the following problem. I have a provider who transmits the phone number in the P-Preferred-Identity.
At the provider, the phone number = username for the login
This is also transmitted for an outgoing call.
According to the provider, I can change this with P-Preferred-Identity, but his information does not work. Can someone help me.
In provider-profil must change the config additional
[endpoint]
send_pai = no
and in extensions.conf i should expand the following
thats the original part
[SIP-1641311195-32-outgoing]
exten => _[0-9*#+a-zA-Z][0-9*#+a-zA-Z]!,1,Set(number=0049${EXTEN:2})
same => n,Set(number=${FILTER(*#+1234567890,${number})})
same => n,ExecIf($["${EXTEN}" != “${number}”]?Goto(${CONTEXT},${number},$[${PRIORITY} + 1]))
same => n,ExecIf($["${number}x" == “x”]?Hangup())
same => n,Set(ROUTFOUND=1)
same => n,Gosub(${ISTRANSFER}dial,${EXTEN},1)
same => n,ExecIf($["${EXTERNALPHONE}" == “${src_number}”]?Set(DOPTIONS=tk))
same => n,Set(DIAL_COMMAND=PJSIP/${number}@SIP-1641311195)
same => n,GosubIf($["${DIALPLAN_EXISTS(SIP-1641311195-outgoing-custom,${EXTEN},1)}" == “1”]?SIP-1641311195-outgoing-custom,${EXTEN},1)
same => n,Set(_OUT_NEED_ANNONCE=1)
same => n,Dial(${DIAL_COMMAND},600,${DOPTIONS}TKU(${ISTRANSFER}dial_answer)b(dial_create_chan,s,1))
same => n,GosubIf($["${DIALPLAN_EXISTS(SIP-1641311195-outgoing-after-dial-custom,${EXTEN}),1}" == “1”]?SIP-1641311195-outgoing-after-dial-custom,${EXTEN},1)
same => n,ExecIf($["${ISTRANSFER}x" != “x”]?Gosub(transfer_dial_hangup,${EXTEN},1))
same => n,ExecIf($["${DIALSTATUS}" = “ANSWER”]?Hangup())
same => n,ExecIf($["${DIALSTATUS}" = “BUSY”]?Busy())
same => n,Set(pt1c_UNIQUEID=${EMPTY_VALUE})
same => n,return
and the expand from miko-support
[SIP-1641311195-outgoing-custom]
exten => _X!,1,Set(PJSIP_HEADER(add,P-Preferred-Identity)=“035814212345@registrar.hfosip.de”)
same => n,return
But the number (035814212345) won´t transmitt.
Can somebody help me.
Regards