Thanks david but not looking to split hairs on this thread. I really believe you do not read OP. Do you need a youtube video to show you? If so, please move on, as from the beginning you did not read OP
Yes it is VERY COMMON to have SIP extensions REGISTER as this one does. Although not technically a PSTN Gateway it probably functions much the same way. Stop splitting this hair, in fact stop replying
I am not a noob to asterisk so please cease the idiotic replies they are uselsss.
And yes I am using the “depricated chan_sip” (oooh noo). If you are you are unfamiliar with Chan_sip then stop acting like an expert offering no real solutions only rhetoric then please back off. I know there is a fix in chan_sip I have used it before.
Please kindly step aside and let someone who can read and knows chan_sip answer this
In the log below (invite) where it says "+1MYNUMBERHERE is where the callers number appears as “From…”, so yes you are dead wrong on that point. The "from Carries the originbal Caller ID which is what I need to get fromm Chan_sip to my message.
<--- SIP read from UDP:10.0.0.84:5095 --->
INVITE sip:329@10.0.0.250:5060 SIP/2.0
Call-ID: a7dfb7f17bcab27a@10.0.0.84
Content-Length: 207
CSeq: 8001 INVITE
From: <sip:+1MYNUMBERHERE@10.0.0.250>;tag=SP25f8f7ace3c741dd0
Max-Forwards: 70
To: <sip:329@10.0.0.250>
Via: SIP/2.0/UDP 10.0.0.84:5095;branch=z9hG4bK-ffd7df3a;rport
User-Agent: OBIHAI/OBi200-3.2.2.8680
Contact: <sip:601@10.0.0.84:5095>
Expires: 60
Supported: replaces
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,PRACK,REFER,UPDATE
Content-Type: application/sdp
v=0
o=- 3272028 1 IN IP4 10.0.0.84
s=-
c=IN IP4 10.0.0.84
t=0 0
m=audio 14814 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv
a=ptime:30
a=xg726bitorder:big-endian
<------------->
--- (14 headers 11 lines) ---
Sending to 10.0.0.84:5095 (no NAT)
Sending to 10.0.0.84:5095 (no NAT)
Using INVITE request as basis request - a7dfb7f17bcab27a@10.0.0.84
Found peer '601' for '+1MYNUMBERHERE' from 10.0.0.84:5095
<--- Reliably Transmitting (no NAT) to 10.0.0.84:5095 --->
SIP/2.0 401 Unauthorized
v: SIP/2.0/UDP 10.0.0.84:5095;branch=z9hG4bK-ffd7df3a;received=10.0.0.84;rport=5095
f: <sip:+1MYNUMBERHERE@10.0.0.250>;tag=SP25f8f7ace3c741dd0
t: <sip:329@10.0.0.250>;tag=as3e9e9830
i: a7dfb7f17bcab27a@10.0.0.84
CSeq: 8001 INVITE
Server: NoneOfYourBusiness
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
k: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="23d387cd"
l: 0
<------------>
Scheduling destruction of SIP dialog 'a7dfb7f17bcab27a@10.0.0.84' in 6400 ms (Method: INVITE)
<--- SIP read from UDP:10.0.0.84:5095 --->
ACK sip:329@10.0.0.250:5060 SIP/2.0
Call-ID: a7dfb7f17bcab27a@10.0.0.84
Content-Length: 0
CSeq: 8001 ACK
From: <sip:+1MYNUMBERHERE@10.0.0.250>;tag=SP25f8f7ace3c741dd0
Max-Forwards: 70
To: <sip:329@10.0.0.250>;tag=as3e9e9830
Via: SIP/2.0/UDP 10.0.0.84:5095;branch=z9hG4bK-ffd7df3a;rport
User-Agent: OBIHAI/OBi200-3.2.2.8680
<------------->
--- (9 headers 0 lines) ---
<--- SIP read from UDP:10.0.0.84:5095 --->
INVITE sip:329@10.0.0.250:5060 SIP/2.0
Call-ID: a7dfb7f17bcab27a@10.0.0.84
Content-Length: 207
CSeq: 8002 INVITE
From: <sip:+1MYNUMBERHERE@10.0.0.250>;tag=SP25f8f7ace3c741dd0
Max-Forwards: 70
To: <sip:329@10.0.0.250>
Via: SIP/2.0/UDP 10.0.0.84:5095;branch=z9hG4bK-42dbc001;rport
Authorization: Digest algorithm=MD5,nonce="23d387cd",realm="asterisk",response="43495f24e93f558401b89c3d42737320",uri="sip:329@10.0.0.250:5060",username="601"
User-Agent: OBIHAI/OBi200-3.2.2.8680
Contact: <sip:601@10.0.0.84:5095>
Expires: 60
Supported: replaces
Allow: ACK,BYE,CANCEL,INFO,INVITE,NOTIFY,OPTIONS,PRACK,REFER,UPDATE
Content-Type: application/sdp
v=0
o=- 3272028 1 IN IP4 10.0.0.84
s=-
c=IN IP4 10.0.0.84
t=0 0
m=audio 14814 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=sendrecv
a=ptime:30
a=xg726bitorder:big-endian
<------------->
--- (15 headers 11 lines) ---
Sending to 10.0.0.84:5095 (no NAT)
Using INVITE request as basis request - a7dfb7f17bcab27a@10.0.0.84
Found peer '601' for '601' from 10.0.0.84:5095
== Using SIP RTP CoS mark 5
Found RTP audio format 0
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format telephone-event for ID 101
Capabilities: us - (ulaw|alaw), peer - audio=(ulaw)/video=(nothing)/text=(nothing), combined - (ulaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
> 0x73f1cde8 -- Strict RTP learning after remote address set to: 10.0.0.84:14814
Peer audio RTP is at port 10.0.0.84:14814
Looking for 329 in from-internal (domain 10.0.0.250)
sip_route_dump: route/path hop: <sip:601@10.0.0.84:5095>
<--- Transmitting (no NAT) to 10.0.0.84:5095 --->
SIP/2.0 100 Trying
v: SIP/2.0/UDP 10.0.0.84:5095;branch=z9hG4bK-42dbc001;received=10.0.0.84;rport=5095
f: <sip:+1MYNUMBERHERE@10.0.0.250>;tag=SP25f8f7ace3c741dd0
t: <sip:329@10.0.0.250>
i: a7dfb7f17bcab27a@10.0.0.84
CSeq: 8002 INVITE
Server: NoneOfYourBusiness
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
k: replaces, timer
m: <sip:329@10.0.0.250:5060>
l: 0
<------------>
-- Executing [329@from-internal:1] TrySystem("SIP/601-00000088", "curl -v -u kodi:kodi -H "Accept: application/json" -H "Content-type: application/json" -d '{"id":1,"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Incoming fax to: FAXNUMBERHERE","message":"From: Fax 601","displaytime":15000,"image":"special://userdata/faxicon.png"},"id":0}' http://hdtvstreamersmi.local:8080/jsonrpc") in new stack
-- Executing [329@from-internal:2] TrySystem("SIP/601-00000088", "curl -v -u kodi:kodi -H "Accept: application/json" -H "Content-type: application/json" -d '{"id":1,"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Incoming fax to: FAXNUMBERHERE","message":"From: Fax 601","displaytime":15000,"image":"special://userdata/faxicon.png"},"id":0}' http://winmedia.local:8080/jsonrpc") in new stack
-- Executing [329@from-internal:3] Wait("SIP/601-00000088", "30") in new stack