Freepbx DID issue in outgoing


(India) #1

I am not able to my DID as CLI on outgoing calls, I only get my pilot number as CID for all.

below is the dial plan logic which has been configured, help please to resolve the issue. Thank You.


(India) #2

exten => _7X.,1,SipAddHeader(P-Preferred-Identity: sip:6614100@10.50.185.2)
exten => _7X.,n,Progress()
exten => _7X.,n,Dial(SIP/0${EXTEN:1}@tatasip)
exten => _7X.,n,Hangup()


(Lorne Gaetz) #3

By using that dialplan you are bypassing all FreePBX config. You probably want to dial to:

Dial(Local/0${EXTEN:1}@from-internal)

and then config outbound routes and trunk(s) to send the call normally.


(India) #4

not working what i want to achieve is whatever outbound CID I map with my extension that should override the trunk CID, below is my incoming logic, so if I try to map an outbound CID with an extension and make an outgoing call it doesnt go through.

[tata]
exten => _X.,1,Goto(s,1)

exten => s,1,Noop(Let us look deeper into the soul of the invite)
exten => s,n,Set(pseudodid=${SIP_HEADER(To)})
exten => s,n,Set(pseudodid=${CUT(pseudodid,@,1)})
exten => s,n,Set(pseudodid=${CUT(pseudodid,:,2)})
exten => s,n,Goto(from-pstn,${pseudodid},1)

image


(India) #5

image


(Itzik) #6

Can you give us an example of what you are trying to achieve.

Also, please post a call trace via pastebin link


(India) #7

Example - my subscriber CID number is 1356614100 which goes as outgoing CID on every call we make.
I have also got a child series of this pilot CID which is from 1356614101-1356614279.

I have mapped an Extension 2002 with an outbound CID 6614101 which should show as an outgoing CID to other end, which is not working.

Now as per trunk config I have made 6614100 as an outgoing CID, if I remove that then I am not able to dial out PBX says all circuits are busy I believe my dial plan has a header which takes my pilot CID 6614100 in it.

I want to override the CID 6614100, if I dial from 2002 with an outbound CID 6614101, I tried putting 6614101 on outbound CID of ext 2002 but my calls doesnt go out.


(India) #8

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)


(India) #9

image
This is the format what my ISP want us to send while dialing from different DID number


#10

At the Asterisk command prompt, type
sip set debug on
and make a test call. The SIP trace will appear in the Asterisk log for the call, along with the regular entries.

Look at the outgoing INVITE and confirm that you are adding the P-Preferred-Identity header and it is correctly formatted. If not, please post the code you are using to add the header, as well as the outgoing INVITE.

If that header is correct, check that the From header has the caller ID you want to send. For this to work correctly, you must not have a fromuser parameter in your trunk settings. Outbound CallerID for the trunk should be 6614100 and CID Options should be Allow Any CID.

If you still have trouble, paste the Asterisk log (including SIP trace) for a failing call at pastebin.freepbx.org and post the link here.


(Itzik) #11

It does not seem like you set a CID on 2002. Can you post a screenshot?

Also, as mentioned, PLEASE post logs via pastebin link. See instructions: https://wiki.freepbx.org/display/SUP/Providing+Great+Debug#ProvidingGreatDebug-AsteriskLogs-PartII


(India) #12

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)


(India) #13

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)


(India) #14

This is the header for outgioing.

exten => _7X.,1,SipAddHeader(P-Preferred-Identity: sip:6614100@10.50.185.2)
exten => _7X.,n,Progress()
exten => _7X.,n,Dial(SIP/0${EXTEN:1}@tatasip)
exten => _7X.,n,Hangup()


(Itzik) #15

Please please please, please post all these logs via pastebin.


(India) #16

Sorry I am new to forum how do I do it.


(Itzik) #17

See above


(India) #18

Sorry I missed that please find the log link below.

https://pastebin.freepbx.org/view/d0440415


#19

At the start of the log you posted, the call has already failed. Please post a complete log for an attempted call, likely about 500 lines. The most important section is the INVITE sent to the provider.


(India) #20

https://pastebin.freepbx.org/view/3e9cc802

Logs Above