@Alan_uk wrote:
Hi
I have a Raspberry Pi Zero with RasPBX with Asterisk 13.13.1 upgraded to 13.15.0 & FreePBX 13.0.190.11 upgraded to 13.0.192.8 . PSTN calls come in via an OBi110.
When a call comes into the OBi110 its Call History shows
Peer Name: blank
Peer Number: 012345678In FreePBX there is a Trunk called =OBiTrunkSP2 and an Inbound Route that has a Custom Destination. In the Custom Destination context the command:
exten => 012345678,1,Noop(Incoming pstn call from ${CALLERID(all)}) gives Incoming pstn call from "0789123456" 0789123456
If a number is withheld the OBi110 shows
Peer Name: WITHHELD
Peer Number: blankand the context now shows
Incoming pstn call from "OBiTrunkSP2" OBiTrunkSP2
Whilst the first case is no problem (the PSTN does not send Caller Name), the second case is problematic if there are other different status from the PSTN (e.g. INTERNATIONAL, though I guess I can check for 00 if the number is provided)
How do I figure out if 1) OBi110 is wrongly sending or 2) Asterisk/FreePBX is wrongly receiving.
I'm sure that when I incorrectly had the Trunk context set to my custom code (rather that it set to from-pstn and using Custom Extension) that the caller ID was correctly shown as "" <0789123456> but I can't find any log to prove it.
I'm reluctant to dump a whole log in this post but some things caught my eye:
> Executing [in@sub-record-check:2] Set("SIP/OBiTrunkSP2-00000019", "FROMEXTEN=unknown" ) in new stack > Executing [in@sub-record-check:3] ExecIf("SIP/OBiTrunkSP2-00000019", "11?Set(FROMEXTEN=OBiTrunkSP2)") in new stack > Executing [s@ext-did:5] ExecIf("SIP/OBiTrunkSP2-00000019", "1 ?Set(CALLERID(name)=OBiTrunkSP2)") in new stack
Thanks for reading
Alan
Posts: 2
Participants: 2